import request from '../utils/request';

const headers = { 'Content-Type': 'application/json' };
export function fetch({ value = 'userMsg' }) {
  return request('/api/userMsg', {
    method: 'post',
    headers,
    body: JSON.stringify({ value  }),
  });
}

export function UserHistory({ id }) {
  return request('/api/userMsg/History', {
    method: 'post',
    headers,
    body: JSON.stringify({ id }),
  });
}


export function getmsg({ id, user_id }) {
  return request('/api/userMsg/HistoryMsg', {
    method: 'post',
    headers,
    body: JSON.stringify({ id, user_id }),
  });
}
